//
//  RadioHeadView.m
//  口袋
//
//  Created by dllo on 15/5/29.
//  Copyright (c) 2015年 口袋. All rights reserved.
//

#import "RadioHeadView.h"
#import "DKNightVersion.h"
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

@implementation RadioHeadView

- (void)dealloc
{
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UIImageView *headView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
        [headView setImage:[UIImage imageNamed:@"RadioHHH.png"]];
//        [headView setBackgroundColor:[UIColor colorWithRed:128/255.0 green:217/255.0 blue:215/255.0 alpha:1.0]];
//        headView.nightBackgroundColor = UIColorFromRGB(0x343434);
        [self addSubview:headView];
        [headView release];
    }
    return self;
}

@end
